Some note types such as Text and Code notes in Trilium can be set to read-only. When a note is in read-only mode, it is presented to the user in a non-editable view, with the option to switch to editing mode if needed.
For optimization purposes, Trilium will automatically set very large notes to read-only. Displaying such lengthy notes in editing mode can slow down performance, especially when editing is unnecessary.
This behavior can be disabled on a per-note basis, by following the instructions of the next section.
In addition, it's possible to change the number of characters at which the automatic read-only mode will trigger in Options by going to the options for Text Notes and Code Notes.
A note's read-only behavior can be changed via:
The following options are possible:
If the Editable section is missing from the ribbon, then the note type does not support read-only mode.
Apart from using the ribbon as previously mentioned, it's also possible to use labels to change the behavior:
readOnly label
to the note.autoReadOnlyDisabled label.When accessing a read-only note, it's possible to temporarily edit it by:
button in the Floating buttons area.When pressed, the note will become editable but will become read-only again after navigating to a different note.
Some note types have a special behavior based on whether the read-only mode is enabled: